Parameters
- stream
- The stream to save the image to.
- extension
- The extension of the file format to save in without the dot, for example "png", "jpg", "svg", etc.
- bounds
- Bounding box of the area to be exported.
- dpi
- Optional image resoltuion in DPI.
- encoderSettings
- Optional image encoder settings.